6ac2cd95d1fa6385a6dce28cf4f0b7c0b129cb25,software/base/src/main/java/brooklyn/entity/software/MachineLifecycleEffectorTasks.java,MachineLifecycleEffectorTasks,stop,#ConfigBag#,535

Before Change


                // task also used as mutex by DST when it submits it; ensure it only submits once!
                if (!stoppingMachine.isSubmitted()) {
                    // force the stoppingMachine task to run by submitting it here
                    log.warn("Submitting machine stop early in background for "+entity()+" because process stop has "+
                            (stoppingProcess.isDone() ? "finished abnormally" : "not finished"));
                    Entities.submit(entity(), stoppingMachine);
                }
            }

After Change


                // task also used as mutex by DST when it submits it; ensure it only submits once!
                if (!stoppingMachine.isSubmitted()) {
                    // force the stoppingMachine task to run by submitting it here
                    StringBuilder msg = new StringBuilder("Submitting machine stop early in background for ").append(entity());
                    if (stoppingProcess == null) {
                        msg.append(". Process stop skipped, pre-stop not finished?");
                    } else {
                        msg.append(" because process stop has "+
                                (stoppingProcess.isDone() ? "finished abnormally" : "not finished"));
                    }
                    log.warn(msg.toString());
                    Entities.submit(entity(), stoppingMachine);
                }
            }